/*jslint vars: true, forin: true, sloppy: true */
/*global angular: false, ocDialog: false */
ocDialog.provider('ocDraggable', [function () {

	this.$get = [function () {
		return {
			beDraggable: function (options) {
				return new Draggable(options);
			},
			isDraggable: function (element) {
				return angular.isDefined(element.data("draggableInstance"));
			}
		};
	}];
}]);
